package com.sunyard.domee.commons.exception;

import com.sunyard.domee.commons.constants.ErrorCode;
import lombok.Data;

/**
 * @author jinrao
 */
@Data
public class AuthException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private ErrorCode errorCode;
    private String detailMsg;

    public AuthException(ErrorCode error) {
        super(error.getMessage());
        this.errorCode = error;
    }

}
